.bg_circle{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    // background-color: pink;
    // 设置过渡时间
    transition: transform 1s;
    // 设置背景小球的样式
    >div{
        position: absolute;
        border-radius: 50%;
        background:linear-gradient(white,green,red,blue);
        opacity: .7;
        // 开启动画
        animation: ani_circle 20s linear infinite;
    }
    >div:nth-child(1){
        width: 50px;
        height: 50px;
        top: 5%;
        left: 40%
    }
    >div:nth-child(2){
        width: 100px;
        height: 100px;
        top: 10%;
        left: 80%;
    }
    >div:nth-child(3){
        width: 120px;
        height: 120px;
        top: 10%;
        left: 70%;
    }
    >div:nth-child(4){
        width: 180px;
        height: 180px;
        top: 20%;
        left: 90%;
    }
    >div:nth-child(5){
        width: 220px;
        height: 220px;
        top: 25%;
        left: 20%
    }
    >div:nth-child(6){
        width: 300px;
        height: 300px;
        top: 50%;
        left: 55%
    }
    // 设置动画函数
    @keyframes ani_circle {
        0%{}
        100%{
            transform: translateX(-1200px) rotate(-1080deg);
            opacity: .5;
        }
    }
}

// 设置背景倾斜样式
.bg_circle_rotate{
    transform: rotate(-15deg);
}

// 设置1楼的内容布局
.s1{
    position: relative;
    perspective: 1000px;
    .s1_main{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        transition: transform 1s;  // 设置过渡
        >img:nth-child(2){
            position: absolute;
            top: 0;
            left: 0;
        }
    }
    // 设置内容开始的状态
    .s1_main_start{
        transform: translate3d(-50%,-50%,800px) rotateY(180deg)
    }
}

// 设置2楼的内容布局
.s2{
    position: relative;
    perspective: 1000px;
    .s2_main{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        transition: transform 1s;
        >img{
            display: block;
        }
    }
    // 设置内容开始的状态
    .s2_main_start{
        transform: translate3d(-50%,-50%,-10000px);
    }
    // 设置离开状态
    .s2_main_leave{
        transform:translate3d(-50%,-50%,1000px);
    }
}

// 设置3楼的内容布局
.s3{
    perspective: 1000px;
    .s3_main{
        z-index: 99;
        position: absolute;
        width: 100%;
        height: 100%;
        left: 30%;
        top: 30%;
        // background-color: pink;
        // border: 1px solid black;
        transform: rotateX(30deg);
        transition: transform 1s;
        .s3_browser{ // 左侧盒子
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            border: 1px solid black;
            background-color: #fff;
             transition: transform 1s;
        }
        .s3_browser_img{ // 右侧图片
            position: absolute;
            top: 100px;
            left: -300px;
            transition: transform 1s;
        }
    }
    // 设置初始的盒子位置
    .s3_main_start{
        transform: translateY(2000px) rotateX(30deg);
        .s3_browser{
            // 设置右边盒子初始位置在右侧
            transform: translateX(2000px);
        }
        .s3_browser_img{
            // 设置左边盒子初始位置在左侧
            transform: translateX(-2000px);
        }
    }
}

// 设置4楼的内容布局
.s4{
    position: relative;
    .s4_main{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        width: 600px;
        height: 400px;
        transition: transform 1s;
        >img{
            position: absolute;
        }
        .pop1{
            top: 0;
            left: 0;
        }
        .pop2{
            top: 200px;
            left: 0;
        }
        .pop3{
            top: 20px;
            left: 20px;
        }
        .pop4{
            top: 0;
            right: 0;
        }
        .pop5{
            bottom: 0;
        }
    }
    // 设置4楼内容的初始位置
    .s4_main_start{
            transform: translate(-1200px,-250px) rotate(60deg);
        }
}
